package com.hakim.wfb.dao;

import com.hakim.wfb.bean.PointOrder;
import com.hakim.wfb.customer.params.trans.GetPointOrderParameter;
import com.hakim.wfb.customer.params.trans.GetProfitPointOrderParameter;
import com.hakim.wfb.customer.result.trans.CreditPointView;
import com.hkfs.fundamental.database.PageDaoBase;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PointOrderDao extends PageDaoBase<PointOrder, String> {

    List<PointOrder> getPointOrders(GetPointOrderParameter param);

    int getPointOrderCount(GetPointOrderParameter param);

    List<PointOrder> getProfitPointOrders(GetProfitPointOrderParameter param);

    int getProfitPointOrderCount(GetProfitPointOrderParameter param);

    /**
     * 批量插入
     *
     * @param pointOrders
     * @return
     */
    int insertBatch(List<PointOrder> pointOrders);

}
